package com.ciwong.epaper.modules.reciteWords.dao;

import com.ciwong.mobilelib.utils.EAction;

/**
 * Created by keepon on 2018/9/13.
 */
public class WordAction extends EAction {

	/**
	 * 获取背单词版本信息
	 */
	public static final String ACTION_GET_RECITE_WORDS_VERSION = HOST + "/v2/package/recitewords_version";


	/**
	 * 保存和修改用户计划
	 */
	public static final String ACTION_SAVE_USER_WORD_PALN = HOST + "/v1/word/saveplan";

	/**
	 * 提交
	 */
	public static final String ACTION_SUBMIT_WORD = HOST + "/v1/word/submitword";
	/**
	 * 获取已学单词列表
	 */
	public static final String ACTION_LEARNED_WORD_LIST = HOST + "/v1/word/getreadword";
	/**
	 * 获取未学单词列表
	 */
	public static final String ACTION_UNLEARN_WORD_LIST = HOST + "/v1/word/getunreadword";
	/**
	 *当月已读单词统计
	 */
	public static final String ACTION_GET_LEARN_COUNT = HOST + "/v1/word/getlearncount";
	/**
	 *获取已创建计划的书籍的状态
	 */
	public static final String ACTION_GET_BOOK_LEARNING = HOST + "/v1/word/getbooklearning";
	/**
	 *根据书籍ID获取学习详情
	 */
	public static final String ACTION_GET_LEARIN_INFO = HOST + "/v1/word/getlearninfo";
	/**
	 *再学习一遍（完成）
	 */
	public static final String ACTION_GET_AGAIN = HOST + "/v1/word/getagain";

	@Override
	public String getActionUrl(String s) {
		if (s.equals(ACTION_GET_RECITE_WORDS_VERSION)) {
			return ACTION_GET_RECITE_WORDS_VERSION;
		} else if (s.equals(ACTION_SAVE_USER_WORD_PALN)) {
			return ACTION_SAVE_USER_WORD_PALN;
		}else if (s.equals(ACTION_SUBMIT_WORD)) {
			return ACTION_SUBMIT_WORD;
		}else if (s.equals(ACTION_LEARNED_WORD_LIST)) {
			return ACTION_LEARNED_WORD_LIST;
		}else if (s.equals(ACTION_UNLEARN_WORD_LIST)) {
			return ACTION_UNLEARN_WORD_LIST;
		}else if (s.equals(ACTION_GET_LEARN_COUNT)) {
			return ACTION_GET_LEARN_COUNT;
		}else if (s.equals(ACTION_GET_BOOK_LEARNING)) {
			return ACTION_GET_BOOK_LEARNING;
		}else if (s.equals(ACTION_GET_LEARIN_INFO)) {
			return ACTION_GET_LEARIN_INFO;
		}else if (s.equals(ACTION_GET_AGAIN)) {
			return ACTION_GET_AGAIN;
		}

		return super.getActionUrl(s);
	}
}
